﻿using System;

using System.Collections.Generic;
using Shuba.Model;

namespace Shuba.Business
{
    public class MsStd
    {
        private Data.MsStd MstStd;

        public MsStd()
        {
            MstStd = new Data.MsStd();
        }

        public MstStdInfo GetApprovalByID(string id, Int16 GroupID)
        {
            return MstStd.GetApprovalByID(id, GroupID);
        }

        public List<MstStdInfo> GetList(string value, Int16 GroupID)
        {
            return MstStd.GetList(value, GroupID);
        }

        public List<MstStdInfo> GetListActive(Int16 GroupId)
        {
            return MstStd.GetListActive(GroupId);
        }

        public List<MstStdInfo> GetListApproval(Int16 GroupID, string UpdateBy)
        {
            return MstStd.GetListApproval(GroupID, UpdateBy.TrimEnd());
        }

        public MstStdInfo Get(string id, Int16 GroupID)
        {
            return MstStd.Get(id, GroupID);
        }

        public int Save(MstStdInfo MstStdInfo)
        {
            return MstStd.Save(MstStdInfo);
        }

        public void Approve(string MsStdId, Int16 GroupID, string ActType)
        {
            MstStd.Approve(MsStdId, GroupID, ActType);
        }

        public void Reject(string MsStdId, Int16 GroupID)
        {
            MstStd.Reject(MsStdId, GroupID);
        }

        public List<Shuba.Model.MstStdInfo> GetListDropdown(Int16 GroupId)
        {
            return MstStd.GetListDropdown(GroupId);
        }

        public List<Shuba.Model.MstStdInfo> GetTypeDebiturNewAndSahabatLama()
        {
            return MstStd.GetTypeDebiturNewAndSahabatLama();
        }

        public List<Shuba.Model.MstStdInfo> GetTypeDebiturExisting()
        {
            return MstStd.GetTypeDebiturExisting();
        }
    }
}
